using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using Winter.BackEnd.Models.Domain;

namespace Winter.BackEnd.Controllers
{
    public class SubjectsController : Controller
    {
        //
        // GET: /Subjects/

        public ActionResult Index()
        {
            var classes = Repository.CurrentUser.Person.Students.First().Group.Schedules.First().WorkDays.First().Classes;
            ViewData["Subjects"] = Repository.CurrentDataContext.Subjects.Where(s => classes.First().ID == s.Classes.First().ID);
            return View();
        }

    }
}
